#!/bin/bash
echo "Input directory name:"
read dir
if [ -d $ {dir} ]
then
	mkdir -p /home/gogo/zipfile
	zip=/home/gogo/zipfile
	date=`date + "%s"`
	tar -czvpf ${zip}/${dir}${date}.tar.gz ${dir}
else 
	echo "${dir} is not exist"
fi
